package com.log6z.dashborad.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.log6z.dashborad.domain.DashboradUser;
import com.log6z.dashborad.service.DashboradUserService;
import com.log6z.dashborad.mapper.DashboradUserMapper;
import org.springframework.stereotype.Service;

/**
* @author lu-profiess
* @description 针对表【dashborad_user(看板小程序的登录用户管理)】的数据库操作Service实现
* @createDate 2023-12-29 18:14:41
*/
@Service
public class DashboradUserServiceImpl extends ServiceImpl<DashboradUserMapper, DashboradUser> implements DashboradUserService{

    @Override
    public DashboradUser findByPhone(String phone) {
        QueryWrapper<DashboradUser> query = new QueryWrapper<>();
        query.eq("phone",phone);
        return getOne(query);
    }
}




